<?php
session_start();
if (!isset($_SESSION['name'])) {
	echo '<script>alert("没登录评你妹啊！");window.history.go(-1)</script>';
}else{
include_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=include_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');
$_POST['uid']=$_SESSION['id'];
$_POST['time']=time();
$res = add($config,'reply',$_POST);
if($res){
	echo '<script>alert("添加成功！");window.history.back(-1)</script>';
}else{
	echo '<script>alert("添加失败！");window.history.go(-1)</script>';
}	
}


// var_dump($time);die;
// var_dump($res);die;
// echo $res;die;



